import axios from "axios";
import "./assets/css/style.css";
axios.get("https://m.maizuo.com/gateway?cityId=110100&pageNum=1&pageSize=10&type=1&k=959827",{
	headers:{
		"x-client-info":'{"a":"3000","ch":"1002","v":"5.2.1","e":"17496956322891835840135169"}',
		"x-host":'mall.film-ticket.film.list'
	},
	params:{
		cityId:110100,
		pageNum:1,
		pageSize:10,
		type:1
	}
}).then(value=>{
	console.log(value.data);
	document.querySelector("#app").innerHTML = value.data.data.films.map(item=>(`
		<div class="item">
			<img src="${item.poster}" alt="">
			<div>
				<h3>${item.name}</h3>
				<p>主演：${item.actors.map(item=>item.name).join(" ")}</p>
				<p>${item.nation}|${item.runtime}分钟</h5>
			</div>
			
		</div>
		<hr/>
	`)).join("")
})